SET(Boost_USE_STATIC_LIBS OFF)
SET(Boost_USE_MULTITHREAD ON)

FIND_PACKAGE(Boost COMPONENTS thread system REQUIRED)

INCLUDE_DIRECTORIES(../core /home/docent/prog/proto/include)

LINK_DIRECTORIES(${Boost_LIBRARY_DIRS} /home/docent/prog/proto/lib)
FILE(GLOB SERVER_SRC server.cpp generated/*.cc)

FILE(GLOB CLIENT_SRC client.cpp generated/*.cc)

ADD_EXECUTABLE(server ${SERVER_SRC})
TARGET_LINK_LIBRARIES(server kieper protobuf ${Boost_LIBRARIES})

ADD_EXECUTABLE(client ${CLIENT_SRC})
TARGET_LINK_LIBRARIES(client kieper protobuf ${Boost_LIBRARIES})
